home *** CD-ROM | disk | FTP | other *** search
/ Treccani Italiana Di Scienze Lettere Ed Arti / [Enciclopedia] Treccani Italiana di scienze lettere ed arti.iso / pc / data / menu_dvd.swf / scripts / frame_1 / DoAction.as
Text File  |  2007-11-07  |  2KB  |  64 lines

  1. function doEsci()
  2. {
  3.    getUrl("lingo: MenuEsci", "");
  4. }
  5. stop();
  6. MovieClip.prototype.tabEnabled = false;
  7. Button.prototype.tabEnabled = false;
  8. TextField.prototype.tabEnabled = false;
  9. _global.gDialogManager = mc_DialogManager;
  10. var HELP_URL = "help.swf";
  11. _global.gAlert = mc_alert;
  12. _global.gUseEmbeddedFont = true;
  13. CAppendiceStyleManager.USE_SUB_SUP_FONT = true;
  14. CAppendiceStyleManager.USE_EMBEDDED_FONT = _global.gUseEmbeddedFont;
  15. CAlert.DEFAULT_TITLE = "| Enciclopedia Italiana di Scienze, Lettere ed Arti |";
  16. if(_global.gUseEmbeddedFont)
  17. {
  18.    _global.styles.TextArea.setStyle("antiAliasType","advanced");
  19.    _global.styles.TextArea.setStyle("sharpness",-300);
  20.    _global.styles.TextArea.setStyle("thickness",-50);
  21.    _global.styles.TextField.setStyle("antiAliasType","advanced");
  22.    _global.styles.TextField.setStyle("sharpness",-300);
  23.    _global.styles.TextField.setStyle("thickness",-50);
  24.    _global.styles.TextInput.setStyle("antiAliasType","advanced");
  25.    _global.styles.TextInput.setStyle("sharpness",-300);
  26.    _global.styles.TextInput.setStyle("thickness",-50);
  27. }
  28. if(_global.gUseEmbeddedFont)
  29. {
  30.    _global.gStyleManager = new CAppendiceStyleManager("Arial Unicode MS","xxApice","xxPedice",14,12,16);
  31. }
  32. else
  33. {
  34.    _global.gStyleManager = new CAppendiceStyleManager("Arial Unicode MS","xxApice","xxPedice",14,12,16);
  35. }
  36. mc_Indice.onPress = function()
  37. {
  38.    getUrl("lingo: AvviaIndice", "");
  39. };
  40. mc_Appendice.onPress = function()
  41. {
  42.    getUrl("lingo: AvviaAppendice", "");
  43. };
  44. mc_Prospettive.onPress = function()
  45. {
  46.    getUrl("lingo: AvviaProspettive", "");
  47. };
  48. mc_Iconizza.onPress = function()
  49. {
  50.    getUrl("lingo: MenuIconizza", "");
  51. };
  52. mc_Esci.onPress = function()
  53. {
  54.    var msg = "Si conferma di voler uscire dalla Enciclopedia Italiana di Scienze, Lettere ed Arti?";
  55.    var argArray = new Array();
  56.    _global.gAlert.SetCallback("YES",_root,"doEsci",argArray);
  57.    _global.gAlert.ShowAlert("",msg,"YESNO",10);
  58. };
  59. mc_Aiuto.onPress = function()
  60. {
  61.    trace("mc_Aiuto.onPress ");
  62.    mc_DialogManager.LoadContents(HELP_URL,"MenuGenerale",true);
  63. };
  64.